package com.ruoyi.attached.mapper;

import java.util.List;
import com.ruoyi.attached.domain.Attached;
import org.apache.ibatis.annotations.Param;

/**
 * 附Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-08
 */
public interface AttachedMapper
{
    /**
     * 查询附
     *
     * @param id 附主键
     * @return 附
     */
    public Attached selectAttachedById(Long id);

    public List<Attached> selectAttachedByIds(@Param("ids")Long[] ids);

    /**
     * 查询附列表
     *
     * @param attached 附
     * @return 附集合
     */
    public List<Attached> selectAttachedList(Attached attached);

    /**
     * 新增附
     *
     * @param attached 附
     * @return 结果
     */
    public int insertAttached(Attached attached);

    /**
     * 修改附
     *
     * @param attached 附
     * @return 结果
     */
    public int updateAttached(Attached attached);

    /**
     * 删除附
     *
     * @param id 附主键
     * @return 结果
     */
    public int deleteAttachedById(Long id);

    /**
     * 批量删除附
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAttachedByIds(Long[] ids);

    /**
     * 批量逻辑删除附
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int logicDeleteAttached(@Param("array")Long[] ids,@Param("delType")String delType,@Param("delUser")Long delUser);
}
